package com.example.javabasic.thread.classone.demo1;

import lombok.Data;

@Data
public class Context {
    private int a;
    private int b;
    private AddData addData;

    public Context(int i, int i1) {
        this.a = i;
        this.b = i1;
    }

    public Context(int i, int i1,AddData addData) {
        this.a = i;
        this.b = i1;
        this.addData = addData;
    }

    protected int conAdd(){
        return addData.add(a,b);
    }

}
